package com.gitee.ricesugar.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class BookRecord {
    private String id;
    private String title;
    private String author;
    private String press;
    private String isbn;
    private String username;
    private String uid;
    private String category;
    private String description;
    private Integer amount;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    Date publishDate;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    Date borrowDate;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    Date returnDate;
}
